package org.springblade.modules.admin.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Date 14:43 2024/7/30
 * @Description {
 *   报告发送状态
 * }
 * @Author lsay
 **/
@Getter
@AllArgsConstructor
public enum ReportSendStatusEnum {

	TO_SEND(1,"待发送"),

	SUCCESS(2,"已发送"),
	ERROR(3,"发送失败");

	final int status;

	final String name;

	public static String getName(int status){
		ReportSendStatusEnum[] values = ReportSendStatusEnum.values();
		for (ReportSendStatusEnum enumValue:values) {
			if(enumValue.getStatus()==status){
				return enumValue.getName();
			}
		}
		return null;
	}
}
